using System;
using System.Web.UI;

namespace SharpPieces.DemoApp
{

    /// <summary>
    /// The Gradient Button PostBacks demo page.
    /// </summary>
    public partial class GradientBtnPostBacks : Page
    {

        /// <summary>
        /// Handles the Click event of the GradientButton1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void GradientButton1_Click(object sender, EventArgs e)
        {
            this.Label1.Text = string.Format("Clicked at server time: {0:t}", DateTime.Now);
        }

        /// <summary>
        /// Handles the Click event of the GradientButton2 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void GradientButton2_Click(object sender, EventArgs e)
        {
            this.Label2.Text = string.Format("Clicked at server time: {0:t}", DateTime.Now);
        }

    }

}
